package com.whfc.hdc.dao;

import com.whfc.hdc.dto.FshWarnRuleDTO;
import com.whfc.hdc.entity.FshWarnRule;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author qzexing
 * @version 1.0
 * @date 2021-04-20 17:21
 */
@Repository
public interface FshWarnRuleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(FshWarnRule record);

    int insertSelective(FshWarnRule record);

    FshWarnRule selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(FshWarnRule record);

    int updateByPrimaryKey(FshWarnRule record);

    /**
     * 查找所有的安全帽报警类型
     *
     * @return 安全帽报警类型
     */
    List<FshWarnRuleDTO> selectAll();
}